package org.raymond.iworks.core.constants;

import lombok.Getter;

import java.nio.charset.StandardCharsets;

@Getter
public enum HttpHeaders {
    CONTENT_TYPE(org.springframework.http.HttpHeaders.CONTENT_TYPE, "application/json;charset=utf-8"),
    CONTENT_LENGTH(org.springframework.http.HttpHeaders.CONTENT_LENGTH, "1"),
    ACCEPT_CHARSET(org.springframework.http.HttpHeaders.ACCEPT_CHARSET, StandardCharsets.UTF_8.name()),
    TRANSFER_ENCODING(org.springframework.http.HttpHeaders.TRANSFER_ENCODING, StandardCharsets.UTF_8.name())
    ;

    private final String name;
    private final String value;

    HttpHeaders(String name, String value){
        this.name = name;
        this.value = value;
    }
}
